package com.xyzh05.service;

import java.util.List;

import javax.jws.WebService;

import com.xyzh05.model.Plan;
import com.xyzh05.model.User;

@WebService
public interface PlanManager extends GenericManager<Plan, Long> {
    
	   /**
	    * 根据服务ID查询
	    * @param vipServiceId
	    * @return
	    */
	   List findQuery(Long vipServiceId);
	   
	   /**
	    * 批量保存
	    * @param plans 计划集合
	    * @param vipServiceId  VIP服务ID
	    * @param user
	    */
	   void batchSave(List<Plan> plans, Long vipServiceId, User user);
	   
	   /**
	    * 检查是否存在计划
	    * @param vipServiceId
	    * @return  true:不存在  false:存在
	    */
	   Boolean existPlan(Long vipServiceId);
}